/**
 * Created by apple on 2017/7/1.
 */
import React,{Component} from 'react';
import {
  View,
  Text
} from "react-native";
import NavigatorBar from '../common/NaviagtionBar'
import HomePage from './HomePage'
export default class WelcomePage extends Component{
  componentDidMount(){
    this.timer=setTimeout(()=>{
      this.props.navigator.resetTo({
        component:HomePage
      })
    },2000)
  }
  componentWillUnmount(){
    this.timer&&clearTimeout(this.timer)
  }
  render(){
    return (
      <View>
        <NavigatorBar
          title={'欢迎'}
        />
        <Text>欢迎界面</Text>
      </View>
    )
  }
}


